import 'dart:convert';

SubmitModel submitModelFromJson(String str) => SubmitModel.fromJson(json.decode(str));

String submitModelToJson(SubmitModel data) => json.encode(data.toJson());

class SubmitModel {
  int code;
  String ? msg;
  SubmitData data;

  SubmitModel({
    required this.code,
    this.msg,
    required this.data,
  });

  factory SubmitModel.fromJson(Map<String, dynamic> json) => SubmitModel(
    code: json["code"],
    msg: json["msg"],
    data: SubmitData.fromJson(json["data"]),
  );

  Map<String, dynamic> toJson() => {
    "code": code,
    "msg": msg,
    "data": data.toJson(),
  };
}

class SubmitData {
  int id;
  String number;

  SubmitData({
    required this.id,
    required this.number,
  });

  factory SubmitData.fromJson(Map<String, dynamic> json) => SubmitData(
    id: json["id"],
    number: json["number"],
  );

  Map<String, dynamic> toJson() => {
    "id": id,
    "number": number,
  };
  
}
